package com.mocai.merchant.mapper;

import com.mocai.merchant.core.mapper.BaseMapper;
import com.mocai.merchant.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper extends BaseMapper<User, Integer> {
    User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    User selectByUsername(@Param("username") String username);

    int updateById(User user);

    int deleteById(@Param("id") Integer id);

    int findById(@Param("id") Integer id);
}